{% macro fromCountryCode(country_code) %}
    <i class="{{ country_code|lower }} flag"></i>
{% endmacro %}

{% macro fromLocaleCode(locale_code) %}
    {% import _self as flags %}
    {{ flags.fromCountryCode(locale_code|slice(3, 2)) }}
{% endmacro %}

